package com.heima.media.listener;

import com.heima.media.task.WmNewsPublishTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

//@Component
public class WmNewsPublishListener {

    @Autowired
    private WmNewsPublishTask wmNewsPublishTask;

    @PostConstruct
    public void receiveMsg() throws Exception{
        wmNewsPublishTask.handlerMsg();
    }

}
